<{include file="head.html"}>
<div class="public_main">
    <div class="public_left">
        <{if $cids|count > 0}>
        <div class="mbox">
            <div class="mt">
                子类别
            </div>
            <div class="md">
                <ul>
                <{section name=i loop=$cids}>
                <li><a href="<{$config.SITE_URL}>/type.php?id=<{$cids[i].id}>"><{$cids[i].name}></a></li>
                <{/section}>
                </ul>
            </div>
        </div>
        <{/if}>
        <div class="mbox">
            <div class="mt">
                热销商品
            </div>
            <div class="md">
                <table style="width: 100%;">
                <{section name=h loop=$hotsell}>
                <tr style="width: 100%;">
                    <td width="20">[<a href="<{$config.SITE_URL}>/type.php?id=<{$hotsell[h].typeid}>"><{$hotsell[h].typename}></a>]</td>
                    <td width="50%"><a href="<{$config.SITE_URL}>/commo.php?id=<{$hotsell[h].id}>"><{$hotsell[h].name}></a></td>
                    <td width="30%">已售出 <{$hotsell[h].sell}> 件</td>
                </tr>
                <{/section}>
                </table>
            </div>
        </div>
        <div class="mbox">
            <div class="mt">
                促销商品
            </div>
            <div class="md">
                <{if $cheap_commo|count > 0}>
                <table style="width: 100%;">
                <{section name=d loop=$cheap_commo}>
                <tr style="width: 100%;">
                    <td width="20">[<a href="<{$config.SITE_URL}>/type.php?id=<{$cheap_commo[d].typeid}>"><{$cheap_commo[d].typename}></a>]</td>
                    <td width="50%"><a href="<{$config.SITE_URL}>/commo.php?id=<{$cheap_commo[d].id}>"><{$cheap_commo[d].name}></a></td>
                    <td width="30%">促销价： <{$cheap_commo[d].vprice*$cheap_commo[d].discount/10}> 元</td>
                </tr>
                <{/section}>
                </table>
                <{else}>
                本类暂无促销商品
                <{/if}>
            </div>
        </div>
    </div>
    <div class="public_right ">
        <a href="<{$config.SITE_URL}>">首页</a> >
        <{foreach $pids as $k=>$v}>
        <a href="<{$config.SITE_URL}>/type.php?id=<{$k}>"><{$v}></a> >
        <{/foreach}>
        <{$typeinfo.name}>
        <div class="mbox" style="border-color:#D00000 ; ">
            <div class="mt" style="background-color: #D00000;">商品列表</div>
            <div class="md">
                <{if $commolist|count <= 0}>
                该分类下还没有商品。
                <{else}>
                <ul>
                    <{section name=c loop=$commolist}>
                    <li class="commoli">
                        <a href="<{$config.SITE_URL}>/commo.php?id=<{$commolist[c].id}>"><img src="<{if $commolist[c].path && $commolist[c].isimg==1}><{$config.SITE_URL}>/<{$config.attpath}><{$commolist[c].path}><{else}><{$config.SITE_URL}>/images/nopic.jpg<{/if}>" width="215" height="200"/>
                            <center>
                            <p><{$commolist[c].name}></p></a>
                        <p>会员价：<font color="red"><{$commolist[c].vprice}></font> 元</p>
                        <p>分类：<a href="<{$config.SITE_URL}>/type.php?id=<{$commolist[c].typeid}>"><{$commolist[c].typename}></a></p>
                        </center>
                    </li>
                    <{/section}>
                </ul>
                <{/if}>
                
            </div>
            
        </div>
        <center style="margin-top: 10px;"><{$page}></center>
    </div>
</div>
<{include file="foot.html"}>
